package service;

import controller.entity.Page;
import entity.Goods;

import java.util.List;

/**
 * Created by asus on 2017/6/20.
 */
public interface GoodsService {
    /**
     * 分页查询商品信息
     * @return
     */
    public List<Goods> getGoods(Page page);
    /**
     * 获取总记录数
     * @return
     */
    public Integer getCount();

    /**
     * 新增一样商品
     * @param goods
     * @return 新增商品的主键值
     */
    public Long saveGoods(Goods goods);

    public List<Goods> getAllGoods();

    public void update(Goods goods) throws Exception;

    public void delete(Long id) throws Exception;

}
